printback=OFF.

TITLE LIS Cross-section Data center in Luxembourg.

TITLE email: usersupport@lisdatacenter.org .

TITLE LIS Self Teaching Package 2022.

TITLE Part II: Gender, employment, and wages.
TITLE SPSS version.

TITLE last change of this version of the syntax: 15-01-2022.


TITLE Exercise 1: Merging person and household data, selecting a sample.

define ex21 ().
select if age ge 25 and age le 54.
select if relation ge 1000 and relation le 2200.
if own ge 100 and own le 199 owner = 1.
if own ge 200 and own le 299 owner = 0.
weight by ppopwgt.
frequencies variables = owner.
!enddefine.

match files file = us04p 
  /table = us04h
  /keep=did hid own dname pwgt ppopwgt relation partner ageyoch age sex immigr educ educ_c emp status1 ptime1 hwage1
  /by hid.
ex21.
match files file = be04p 
  /table = be04h
  /keep=did hid own dname pwgt ppopwgt relation partner ageyoch age sex immigr educ educ_c emp status1 ptime1 hwage1
  /by hid.
ex21.
match files file = gr04p 
  /table = gr04h
  /keep=did hid own dname pwgt ppopwgt relation partner ageyoch age sex immigr educ educ_c emp status1 ptime1 hwage1
  /by hid.
ex21.
